﻿<%@ Page Title="" Language="C#" MasterPageFile="../Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Topic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

	<div id="replyTopic">
        <h2>消息主题：</h2>
        <div class="sec">
            <%= Html.SimpleUserLabel(Model.Sender) %>:<strong><%= Model.MessageTitle.SummrizeText(20) %></strong><br />
            <%= Model.MessageText.SummrizeText(20) %>
            <span class="ignore">(<%= Model.CreateOn %>)</span></div>
		
        <div class="sec">
            消息参与者：
            <% foreach (var group in Model.Participator.GroupParticipators)
               {%>
            <%=Html.SimpleGroupLabel(group) %>
            <%}
               foreach (var user in Model.Participator.UserParticipators)
               {%>
            <%= Html.SimpleUserLabel(user) %>
            <%}
            %>(共<%= Model.Participator.AllUserMemebers.Count %>人)
        </div>

        <% if (Model.NeedConfirm)
           {%>
	
		<h2>已确认列表：</h2>
		<div class="sec">
            <%foreach (var user in Model.ConfirmUsers)
               {%>
            <%= Html.SimpleUserLabel(user) %>
            <%}%>
            <small>(<%= Model.ConfirmedCount %> 人)</small>
		</div>
		
		<h2>尚未确认列表：</h2>
		<div class="sec">
            <%foreach (var user in Model.NoConfirmUsers)
               {%>
            <%= Html.SimpleUserLabel(user) %>
            <%}%>
            <small>(<%= Model.NoConfirmCount %> 人)</small>
		</div>
        <%}
           else
           { %>
		<div class="sec"><small>该消息不需要确认。</small></div>
        <%} %>
		<div class="sec"><a href="/message/show?topicId=<%= Model.MessageId %>">返回</a></div>


    </div>
    

</asp:Content>
